package com.ge.modules.entity;

import com.ge.modules.api.apiDTO.TbStoreDto;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 店铺
 *
 * @author lanyonglin
 * @email www.baidu.com
 * @date 2018-04-20 17:02:44
 */
public class TbStoreEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    //
    private Integer storeId;
    //店铺名称
    private String storeName;
    //店铺地址
    private String storeAddress;
    //店铺电话
    private String storeTel;
    //店铺介绍
    private String brandIntroduce;
    //电话号码(账号)
    private String mobile;
    //登录密码
    private String password;
    //店铺成交订单总金额
    private BigDecimal performance;
    //店铺成交订单总数
    private Integer orderCount;
    //店铺成交订单的客户人数总数
    private Integer clientCount;
    //店铺钱包金额
    private BigDecimal wallet;
    //店铺创建时间
    private Date createTime;
    //店铺背景图片
    private String backgroundPicture;
    //店铺当天成交订单收入
    private BigDecimal todayOrderIncome;
    //店铺当天成交订单数
    private Integer todayOrderCount;
    //店铺星级
    private Double star;
    //店铺平均消费金额
    private BigDecimal averageExpend;
    //店铺类型 1美发店 2美容店 3美甲店 4纹身店
    private Integer storeType;
    //店铺账号状态，0:未删除，1:已删除
    private Integer deleteType;
    //城市id
    private Integer cityId;
    //城市名称
    private String cityName;
    //经度
    private String lgt;
    //纬度
    private String lit;
    //用户类型 1用户 2技师 3店铺
    private Integer userType;
    //不工作的那一天 1-7 表示周一至周日 逗号隔开
    private String noWorkDay;
    //每天的上班时间
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date startWorkTime;
    //每天的下班时间
    @DateTimeFormat(pattern = "HH:mm:ss")
    private Date endWorkTime;
    //头像
    private String headImg;

    public String getNoWorkDay() {
        return noWorkDay;
    }

    public void setNoWorkDay(String noWorkDay) {
        this.noWorkDay = noWorkDay;
    }

    public Date getStartWorkTime() {
        return startWorkTime;
    }

    public void setStartWorkTime(Date startWorkTime) {
        this.startWorkTime = startWorkTime;
    }

    public Date getEndWorkTime() {
        return endWorkTime;
    }

    public void setEndWorkTime(Date endWorkTime) {
        this.endWorkTime = endWorkTime;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getLgt() {
        return lgt;
    }

    public void setLgt(String lgt) {
        this.lgt = lgt;
    }

    public String getLit() {
        return lit;
    }

    public void setLit(String lit) {
        this.lit = lit;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    /**
     * 设置：
     */
    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    /**
     * 获取：
     */
    public Integer getStoreId() {
        return storeId;
    }

    /**
     * 设置：店铺名称
     */
    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    /**
     * 获取：店铺名称
     */
    public String getStoreName() {
        return storeName;
    }

    /**
     * 设置：店铺地址
     */
    public void setStoreAddress(String storeAddress) {
        this.storeAddress = storeAddress;
    }

    /**
     * 获取：店铺地址
     */
    public String getStoreAddress() {
        return storeAddress;
    }

    /**
     * 设置：店铺电话
     */
    public void setStoreTel(String storeTel) {
        this.storeTel = storeTel;
    }

    /**
     * 获取：店铺电话
     */
    public String getStoreTel() {
        return storeTel;
    }

    /**
     * 设置：店铺介绍
     */
    public void setBrandIntroduce(String brandIntroduce) {
        this.brandIntroduce = brandIntroduce;
    }

    /**
     * 获取：店铺介绍
     */
    public String getBrandIntroduce() {
        return brandIntroduce;
    }

    /**
     * 设置：电话号码(账号)
     */
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    /**
     * 获取：电话号码(账号)
     */
    public String getMobile() {
        return mobile;
    }

    /**
     * 设置：登录密码
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取：登录密码
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置：店铺成交订单总金额
     */
    public void setPerformance(BigDecimal performance) {
        this.performance = performance;
    }

    /**
     * 获取：店铺成交订单总金额
     */
    public BigDecimal getPerformance() {
        return performance;
    }

    /**
     * 设置：店铺成交订单总数
     */
    public void setOrderCount(Integer orderCount) {
        this.orderCount = orderCount;
    }

    /**
     * 获取：店铺成交订单总数
     */
    public Integer getOrderCount() {
        return orderCount;
    }

    /**
     * 设置：店铺成交订单的客户人数总数
     */
    public void setClientCount(Integer clientCount) {
        this.clientCount = clientCount;
    }

    /**
     * 获取：店铺成交订单的客户人数总数
     */
    public Integer getClientCount() {
        return clientCount;
    }

    /**
     * 设置：店铺钱包金额
     */
    public void setWallet(BigDecimal wallet) {
        this.wallet = wallet;
    }

    /**
     * 获取：店铺钱包金额
     */
    public BigDecimal getWallet() {
        return wallet;
    }

    /**
     * 设置：店铺创建时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 获取：店铺创建时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置：店铺背景图片
     */
    public void setBackgroundPicture(String backgroundPicture) {
        this.backgroundPicture = backgroundPicture;
    }

    /**
     * 获取：店铺背景图片
     */
    public String getBackgroundPicture() {
        return backgroundPicture;
    }

    /**
     * 设置：店铺当天成交订单收入
     */
    public void setTodayOrderIncome(BigDecimal todayOrderIncome) {
        this.todayOrderIncome = todayOrderIncome;
    }

    /**
     * 获取：店铺当天成交订单收入
     */
    public BigDecimal getTodayOrderIncome() {
        return todayOrderIncome;
    }

    /**
     * 设置：店铺当天成交订单数
     */
    public void setTodayOrderCount(Integer todayOrderCount) {
        this.todayOrderCount = todayOrderCount;
    }

    /**
     * 获取：店铺当天成交订单数
     */
    public Integer getTodayOrderCount() {
        return todayOrderCount;
    }

    /**
     * 设置：店铺星级
     */
    public void setStar(Double star) {
        this.star = star;
    }

    /**
     * 获取：店铺星级
     */
    public Double getStar() {
        return star;
    }

    /**
     * 设置：店铺平均消费金额
     */
    public void setAverageExpend(BigDecimal averageExpend) {
        this.averageExpend = averageExpend;
    }

    /**
     * 获取：店铺平均消费金额
     */
    public BigDecimal getAverageExpend() {
        return averageExpend;
    }

    /**
     * 设置：店铺类型
     */
    public void setStoreType(Integer storeType) {
        this.storeType = storeType;
    }

    /**
     * 获取：店铺类型
     */
    public Integer getStoreType() {
        return storeType;
    }

    /**
     * 设置：店铺账号状态，0:未删除，1:已删除
     */
    public void setDeleteType(Integer deleteType) {
        this.deleteType = deleteType;
    }

    /**
     * 获取：店铺账号状态，0:未删除，1:已删除
     */
    public Integer getDeleteType() {
        return deleteType;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public TbStoreDto toDto() {
        TbStoreDto tbStoreDto = new TbStoreDto();
        tbStoreDto.setNoWorkDay(this.getNoWorkDay());
        tbStoreDto.setStartWorkTime(this.getStartWorkTime());
        tbStoreDto.setBrandIntroduce(this.getBrandIntroduce());
        tbStoreDto.setBackgroundPicture(this.getBackgroundPicture());
        tbStoreDto.setTodayOrderIncome(this.getTodayOrderIncome());
        tbStoreDto.setEndWorkTime(this.getEndWorkTime());
        tbStoreDto.setCityId(this.getCityId());
        tbStoreDto.setCityName(this.getCityName());
        tbStoreDto.setLgt(this.getLgt());
        tbStoreDto.setLit(this.getLit());
        tbStoreDto.setUserType(this.getUserType());
        tbStoreDto.setStoreId(this.getStoreId());
        tbStoreDto.setStoreName(this.getStoreName());
        tbStoreDto.setStoreAddress(this.getStoreAddress());
        tbStoreDto.setStoreTel(this.getStoreTel());
        tbStoreDto.setMobile(this.getMobile());
        tbStoreDto.setPassword(this.getPassword());
        tbStoreDto.setPerformance(this.getPerformance());
        tbStoreDto.setOrderCount(this.getOrderCount());
        tbStoreDto.setClientCount(this.getClientCount());
        tbStoreDto.setWallet(this.getWallet());
        tbStoreDto.setCreateTime(this.getCreateTime());
        tbStoreDto.setStar(this.getStar());
        tbStoreDto.setAverageExpend(this.getAverageExpend());
        tbStoreDto.setStoreType(this.getStoreType());
        tbStoreDto.setDeleteType(this.getDeleteType());
        tbStoreDto.setHeadImg(this.getHeadImg());
        tbStoreDto.setTodayOrderCount(this.getTodayOrderCount());
        return tbStoreDto;
    }
}
